package com.flymobi.mshop.activity;

import com.flymobi.mshop.R;

import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

/**
 * 
 * @author 余鹏 分类列表详情页面
 */

public class ProdList extends Common{

	private TextView title;
	private RelativeLayout product_list_item,product_list_item2,product_list_item3,product_list_item4,
	product_list_item5;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.product_list);
		title = (TextView) findViewById(R.id.titleText);
		title.setText("商品列表");
		setListener();
		
	}
	
	public void setListener(){
	
		product_list_item = (RelativeLayout) findViewById(R.id.product_list_item);
		product_list_item2 = (RelativeLayout) findViewById(R.id.product_list_item2);
		product_list_item3 = (RelativeLayout) findViewById(R.id.product_list_item3);
		product_list_item4 = (RelativeLayout) findViewById(R.id.product_list_item4);
		product_list_item5 = (RelativeLayout) findViewById(R.id.product_list_item5);
		product_list_item.setOnClickListener( listener);
		product_list_item2.setOnClickListener( listener);

		product_list_item3.setOnClickListener( listener);

		product_list_item4.setOnClickListener( listener);
		product_list_item5.setOnClickListener( listener);

		
	}
	OnClickListener listener = new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			forwardRight(ProdDetail.class);

		}
	};
	
	// 按钮的单击事件
	@Override
	public void onClick(View v) {
	}

	@Override
	public boolean onDown(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onLongPress(MotionEvent e) {
		
	}

	@Override
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
			float distanceY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onShowPress(MotionEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean onSingleTapUp(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}
}
